package com.sunlee.common.service.enums;

/**
 * 第三方资源状态枚举
 *
 * @author sunulee
 */
public enum ThirdResStatusEnum {
    /**
     * 流程状态：下载zip（此步骤非必须） -> 解压zip获取ppt文件 -> 解析ppt获取图片和新ppt -> 导入ppt表并上线
     */
    ERROR(0, "异常"),
    OBTAIN_ZIP(1, "已获取源ZIP"),
    OBTAIN_PPT(2, "已获取源PPT"),
    RESOLVED(3, "PPT已解析"),
    COMPLETED(4, "PPT已入库"),
    MANUAL_INVALID(11, "手动修改失效");

    private Integer code;
    private String msg;

    public int getCode() {
        return code;
    }

    ThirdResStatusEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
